import Vue from 'vue'
import VueRouter from 'vue-router'
import shiting from '@/routerpage/shiting'
import product from "@/routerpage/product"
import mainpage from '@/routerpage/mainpage'
import login from '@/routerpage/login'
Vue.use(VueRouter)

export default  new VueRouter({
    routes:[

        {
            path:'/',name:'login',component:login
        },
        {
            path:'/mainpage',name:'mainpage',component:mainpage,
            children:[
                {
                    path:'/',name:'shiting',component:shiting
                },
            ]
        }
    ]
})